package service

import (
	"github.com/go-test/model"
	"github.com/go-test/helper"
)


func GetDepById(id int) *model.Dept {
	dept := &model.Dept{Id : id}
	has,_ := helper.XormEngine().Id(id).Get(dept)
	if has {
		return dept
	}
	return nil;
}